package com.aoxin.mapper;


import java.util.List;
import java.util.Map;

import com.aoxin.model.SlfChildExpectedTime;

public interface SlfChildExpectedTimeMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SlfChildExpectedTime record);

    int insertSelective(SlfChildExpectedTime record);

    SlfChildExpectedTime selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SlfChildExpectedTime record);

    int updateByPrimaryKey(SlfChildExpectedTime record);

    /**
     * 查询孩子的期望上课时间
     * @param childrenId
     * @return
     */
    List<SlfChildExpectedTime> getSlfChildExpectedTimeByChildrenId(Integer childrenId);
    
    //联结统计出每个课程包里面的客户(购买B包的用户)
    List<SlfChildExpectedTime> getSlfChildExpectedTime(Integer pageId);
    
    //修改被占用状态
    void updateEmployExpectedTimeFlag(String endTime);
    
    //(家里搞)找到这个时间段的C类用户
    List<SlfChildExpectedTime> getSlfChildCtype(String ExpectedTime);
    
    //联结统计出每个课程包里面的客户(购买C包的用户)
    List<SlfChildExpectedTime> getSlfChildExpectedTimeC(Integer pageId);

    //判断默认孩子是否有期望时间
    Integer IsExpectedTime(Integer childrenId);
    
    //查看是否孩子期望时间已被占用
    Integer IsbeOccupiedCourse(Map<String,Object> map);

    /**
     * 删除孩子的期望时间
     * @param childrenId
     */
    void deleteTimeByChildrenId(Integer childrenId);
    
    //更改占用时间
    void updateExpectedTime(Map<String,Object> map);
    
    void updateExpectedTimeOther(Map<String,Object> map);
}